home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3784 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  975 b 

  1. Path: news.bridge.net!news
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Strongly Typed Function Pointers
  5. Date: 25 Jan 1996 03:51:13 GMT
  6. Organization: self-employed
  7. Message-ID: <4e6unh$ttk@news.bridge.net>
  8. References: <erik-2401961956090001@annex-dialup02.med.cornell.edu>
  9. NNTP-Posting-Host: ppp-mia3-116.bridge.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15.  
  16. >> I have a program that I'm porting from C to C++ which uses void 
  17. >> (*)(void*) function pointers to call many differant "types" of 
  18. >> functions (ones with differant argument lists).  This of course works 
  19. >> in C but I'm dying in C++ with compiler errors (becuase the pointer 
  20. >> isn't of the right type).
  21.  
  22. Well, you can cast them, of course, if you want to port the program 
  23. unchanged. Ideally, you would prefer to redesign, as it sounds like a 
  24. fragile program.
  25.  
  26.  
  27.   David
  28.  
  29.  
  30.